<%--
  Created by IntelliJ IDEA.
  User: Mike
  Date: 2020/10/5
  Time: 22:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>getResource</title>
</head>
<body>
<h1>All Resources in Databases</h1>
<table>
    <tr>
        <th>Season</th>
        <th>Episode</th>
        <th>endImageURL</th>
        <th>VideoURL</th>
    </tr>
    <!--在EL语句中，引用的变量的首字母必须为小写，否则会报错。-->
    <c:forEach items="${seasonList}" var="resource">
        <tr>
            <th>${resource.season}</th>
            <th>${resource.episode}</th>
            <th>${resource.endImageURL}</th>
            <th>${resource.videoURL}</th>
        </tr>
    </c:forEach>
</table>
</body>
</html>
